#!/usr/bin/env pythonBasics
# -*-coding:utf-8 -*-

# Author:super
import configparser
import os

def getMySQL():
	lists=[]
	config=configparser.ConfigParser()  #方法
	config.read('config.ini')   #读取文件
	'''读取文件'''
	hostname=config.get(config.sections()[0],'hostname')
	port=config.get(config.sections()[0],'port')
	username=config.get(config.sections()[0],'username')
	password=config.get(config.sections()[0],'password')
	'''存入集合中'''
	lists.append(hostname)
	lists.append(port)
	lists.append(username)
	lists.append(password)
	return lists

print(getMySQL())